package com.example.demo.jdk.proxy.static_proxy;

/**
 * @author: htc
 * @date: Created in 10:51 2019/2/20.
 */
public class StaticProxyTest {
    public static void main(String[] args) {
        //目标对象
        UserDao target = new UserDao();

        //代理对象，把目标对象传给代理对象，建立代理关系
        UserDaoProxy proxy = new UserDaoProxy(target);

        proxy.save();
    }
}
